package com.hn.springframework.webmvc.servlet;

import lombok.Data;

import java.lang.reflect.Method;
import java.util.regex.Pattern;

/**
 * @Auther: ninghu
 * @Description:
 */
@Data
public class HNHandlerMapping {

    private Object controller;  // 保存方法的对应实例
    private Method method;      // 保存映射的方法
    private Pattern pattern;    // URL的正则匹配

    public HNHandlerMapping(Object controller, Method method, Pattern pattern) {
        this.controller = controller;
        this.method = method;
        this.pattern = pattern;
    }
}
